import request from "../utils/request.js"
const app = getApp()

//个人中心
export function myinfo() {
    const role = app.globalData.role
    console.log("1", role)
    if (role == "teacher") {
      return request({
        url: "/teacher.php/index/myinfo"
      })
    } else {
      return request({
        url: "/student.php/index/myinfo"
      })
    }
  }